how to convert java application